package com.tbit.uqbike.object.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 用户金额变动日志
 *
 * @author Leon
 * 2017年4月26日 下午5:54:27
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class UserAccountLog {
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 账户id
     */
    private Integer accountId;
    /**
     * 金额类型
     */
    private Integer moneyType;
    /**
     * 消费类型
     * 0 = 余额变动
     */
    private Integer type;
    /**
     * 变动金额
     */
    private Integer money;
    /**
     * 操作时间
     */
    private Date operaTime;
    /**
     * 备注
     */
    private String remark;

    private String phone;

    private Integer newMoney;

    public UserAccountLog(Integer userId, Integer accountId, Integer moneyType, Integer type, Integer money, Date operaTime, String remark) {
        this.userId = userId;
        this.accountId = accountId;
        this.moneyType = moneyType;
        this.type = type;
        this.money = money;
        this.operaTime = operaTime;
        this.remark = remark;
    }
}
